

package com.jc.platform.songjiajia.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.jc.platform.songjiajia.vo.SalesContractVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jc.platform.songjiajia.entity.SalesContractEntity;
import org.apache.ibatis.annotations.*;
import org.mapstruct.MappingTarget;

/**
 * ClassName SalesContractMapper.java
 * Description 销售合同
 *
 * @author 集团管理员
 * @date 2022/01/22
 */
@Mapper
public interface ISalesContractMapper extends BaseMapper<SalesContractEntity>
{


    int getCountByPartner(Long partnerId);

    int addPartner(@Param("contractId")Long contractId,@Param("partnerId")Long partnerId);

    int removePartner(@Param("contractId")Long contractId,@Param("partnerId")Long[] partnerId);

    int removeAllPartner(Long contractId);


    IPage<SalesContractVO> findExtends(IPage<SalesContractVO> page, @Param(Constants.WRAPPER) QueryWrapper<SalesContractVO> queryWrapper);
    List<SalesContractVO> findExtend(@Param(Constants.WRAPPER) QueryWrapper<SalesContractVO> queryWrapper);
}




